﻿<div class="Section">
    <div class="SectionHeading">
        Groups
        <div class="SectionHeadingMenu">
            @Html.ActionLink("New group", "GroupAdd") | @Html.ActionLink("GroupFind", "GroupFind")
        </div>
    </div>
    <div class="SectionContent">
        <table class="DataTable">
            <tr>
                <th>
                    Lp.
                </th>
                <th>
                    Group name
                </th>
                <th>
                    Registered at
                </th>
                <th>
                    Events
                </th>
                <th>
                    Users
                </th>
            </tr>
            @{ Random rand = new Random();
   int lastRand = 0;}
            @for (int i=0;i<20;i++)
   {
   
                <tr>
                    @{ lastRand=lastRand+(rand.Next() % 5); }
                    <td>@(i+1)
                    </td>
                    <td>
                        @Html.ActionLink("Group no "+lastRand, "GroupView") 
                    </td>
                    <td>@System.DateTime.Now.AddDays(rand.Next()%20-10).ToString("yyyy-MM-dd")
                    </td>
                    <td>@(rand.Next() % 20)
                    </td>
                    <td>@(rand.Next() % 200)
                    </td>
                </tr>       
           
       }
        </table>
        <div class="PaginationWidget">
            <ul>
                <li><a href="#">&lt;&lt;</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#" class="selected">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">6</a></li>
                <li><a href="#">&gt;&gt;</a></li>
            </ul>
        </div>
    </div>
</div>
